/*
 *
 *
 *
 *
 */

package com.usefullc.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 应用版本
 * @author admin
 *
 * @2022-05-14
 */
@ApiModel
@TableName("sys_app_version")
@Data
public class AppVersion extends BaseEntity {


    @ApiModelProperty(notes = "公司id")
    private Long companyId;

    @ApiModelProperty(notes = "应用名称")
    private String appName;

    @ApiModelProperty(notes = "模式（test or prod）")
    private String model;

    @ApiModelProperty(notes = "类型（mobile,pc）")
    private String type;

    @ApiModelProperty(notes = "版本号（x.y.z）")
    private String version;

    @ApiModelProperty(notes = "版本号数字(3.5.1 为 351)")
    private Integer versionNo;


    @ApiModelProperty(notes = "是否强制更新")
    private Boolean forceUpdate;

    @ApiModelProperty(notes = "更新日志")
    private String updateLog;

    @ApiModelProperty(notes = "状态（0 就绪，1 启动，2 下线")
    private Integer status;


    @TableField(exist = false)
    private List<AppVersionItem> appVersionItems;

    public AppVersion(){
    }

}
